<?php
/* --------------------------------------------------------------
   gm_pdf_preview.php 2008-05-04 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
		<tr>
			<td valign="top" align="left" class="main">
				<b><?php echo MENU_TITLE_PREVIEW; ?></b>
			</td>
		</tr>
	</table>
	<br />
<form id="gm_pdf_form">
		<table border="0" width="100%" cellspacing="0" cellpadding="2">
			<tr>
				<td width="300" valign="middle" align="left" class="main" height="40">				
					<select onChange="gm_fadeout_boxes('gm_status'); gm_update_boxes('<?php echo xtc_href_link('gm_pdf_action.php', 'action=gm_create_pdf&preview=1'); ?>', 'gm_status');" id="order">																		
						<option selected><?php echo SELECT_CHOOSE; ?></option>
					<?php	
						foreach($gm_row as $order) {
					?>
						<option value="<?php echo $order['orders_id']; ?>"><?php echo SELECT_ORDERS . $order['orders_id'] . " - " . SELECT_CUSTOMER . $order['customers_name']; ?></option>

					<?php
						}
					?>
					</select>
				</td>
				<td valign="middle" align="left" class="main">				
					<span style="height:20px" id="gm_status"></span>				
				</td>
			</tr>
		</table>
		<small><?php echo NOTE_PREVIEW; ?></small>
	</form>